package com.itlong.cloud.sdkv3.service.impl;

import com.itlong.cloud.POJO.VO.SDKMessageV3;
import com.itlong.cloud.POJO.VO.sdk.v3.hw.CancelTravelWrap;
import com.itlong.cloud.POJO.VO.sdk.v3.hw.DoorCtrlCloseWrap;
import com.itlong.cloud.POJO.VO.sdk.v3.hw.DoorCtrlOpenWrap;
import com.itlong.cloud.POJO.VO.sdk.v3.hw.SetTravelWrap;
import com.itlong.cloud.iot.service.server.HuaWeiV3Service;
import com.itlong.cloud.sdkv3.service.ISDKV3Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SDKV3ServiceImpl implements ISDKV3Service {

    @Autowired
    HuaWeiV3Service huaWeiV3Service;

    @Override
    public SDKMessageV3 cloudElevatorCall(SetTravelWrap setTravelWrap) {
        return huaWeiV3Service.submitCallElevator(setTravelWrap);
    }

    @Override
    public SDKMessageV3 openDoor(DoorCtrlOpenWrap doorCtrlOpenWrap) {
        return huaWeiV3Service.submitOpenDoor(doorCtrlOpenWrap);
    }

    @Override
    public SDKMessageV3 closeDoor(DoorCtrlCloseWrap doorCtrlCloseWrap) {
        return huaWeiV3Service.submitCloseDoor(doorCtrlCloseWrap);
    }

    @Override
    public SDKMessageV3 submitCancelElevator(CancelTravelWrap cancelTravelWrap) {
        return huaWeiV3Service.submitCancelElevator(cancelTravelWrap);
    }

}